//
//  BGRefreshViewController.m
//  MKUITestApp
//
//  Created by 苏尚进 on 2023/1/10.
//  Copyright © 2023 moon. All rights reserved.
//

#import "BGRefreshViewController.h"

@interface BGRefreshViewController ()

@end

@implementation BGRefreshViewController

- (void)viewDidLoad{
    [super viewDidLoad];
    self.title = @"后台刷新";
    self.view.backgroundColor = [UIColor mk_colorWithLight:[UIColor whiteColor]];
    self.refreshButton = [[TestFunButton alloc] initWithTitle:@"后台刷新"];
    [self.view addSubview:self.refreshButton];
}
- (void)viewWillLayoutSubviews{
    [super viewWillLayoutSubviews];
    CGRect bounds = self.safeBounds;
    MKUIFlowLayoutConstraint *f1 = [[MKUIFlowLayoutConstraint alloc] initWithItems:@[self.refreshButton] constraintParam:(MKUIFlowLayoutConstraintParam_V_C_C) contentInsets:MKUIEdgeInsetsMakeSameEdge(10) interitemSpacing:10];
    f1.bounds = bounds;
    [f1 layoutItemsWithResizeItems:YES];
}
@end
